package test2;

/**
 * @Author admin
 * @Date 2019/3/22 10:39
 */
public class Factory {
    public static Charge getCharge(int sr) {
    Charge charge;
    if (sr==1){
        charge=new Bus();

    }else {
        charge=new Taxi();
    }
        return  charge;
    }
}
